<?php print $this->doctype(); ?>
<html>
<head>
	<?php
		print $this->headBase();
    	print $this->headMeta();
    	print $this->headTitle();
    	print $this->headScript();
    	print $this->headLink();
    	print $this->headStyle();

		if ($this->dojo()->isEnabled()) {
			print $this->dojo();
		}
    ?>
</head>
<body class="tundra">
<div class="container">
<div id="head">
	<div class="container_16">
		<div class="grid_8">
			<a class="top">Promotor</a>
			<a href="<?php print $this->baseUrl()?>">Strona główna</a>
		</div>
		<div class="grid_8">
			<?php
				/* @var $auth KontorX_View_Helper_Auth */
				$auth = $this->getHelper('Auth');?>
			<ul id="menu-user" class="navigation-menu">
				<li>
					<a class="top">
						<img src="upload/avatar/mini_crop/<?php print $auth->getIndentity('image')?>"/>
						<span><?php print $auth->getIndentity('username', $this->translate('guest'))?></span></a>
			
					<ul class="container">
						<li class="item"><a href="<?php print $this->url(array('module'=>'user', 'controller' => 'user', 'action' => 'edit', 'id' => $auth->getIndentity('id')), null, true) ?>" title="Edycja Twojego profilu">Edytuj profil</a></li>
						<li class="separator"></li>
						<li class="item"><a href="<?php print $this->url(array('module'=>'user', 'controller' => 'auth', 'action' => 'logout'), null, true) ?>">Wyloguj</a></li>
					</ul>
				</li>
			</ul>
		</div>

		<div class="grid_16">
			<?php print $this->partial('_admin/nav.phtml')?>
		</div>
	</div>
	<div class="clear">&nbsp;</div>
</div>
<div class="container_16">
	<div id="main" class="grid_16">
		<div class="wrapper">
			<?php print $this->partial('_admin/messages.phtml')?>
		</div>
		<div class="wrapper">
			<?php print $this->layout()->content?>
		</div>
	</div>
	<div class="clear">&nbsp;</div>
</div>
</div>

<div id="foot">
	<div class="container_16">
		<div class="grid_16">
			<div class="wrapper">
				<p>&copy; 2009 </p>
			</div>
		</div>
	</div>
	<div class="clear">&nbsp;</div>
</div>

<?php print $this->inlineScript();?>
</body>
</html>